use rand::Rng;
use planner_rs::sort;

fn main() {
    println!("Hello, world!");
    // let mut rng = rand::thread_rng();
    // // let vec_arr = (0..500).map(|_| rng.gen_range(0..256)).collect();
    // // let mut arr: [u8; 500] = vec_ar
    let mut arr = [1,3,5,6,8,9,12,4,2,5,8,9,0,1];
    let arr_ref = &mut arr;
    sort::run(arr_ref);
    println!("{:?}", arr);

    let vec: Vec<u8> = vec![1, 2, 3, 4, 5];
    let mut _arr:[&u8; 5] = [&0;5];
    for (idx, v) in vec.iter().enumerate() {
        _arr[idx] = v;
        println!("value: {}", v);
    }
    println!("{:?}", _arr); // 输出：[1, 2, 3, 4, 5]
}
